
package com.bl.student.dao.repository;
import com.bl.student.dao.model.WithdrawalsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

public interface WithdrawalsRepository extends JpaRepository<WithdrawalsEntity, String> {
    Page <WithdrawalsEntity> findAllByOrderByCreateTimeDesc(Pageable pageable);
    Page <WithdrawalsEntity> findByPartybMobileOrderByCreateTimeDesc(String params, Pageable pageable);
    Page <WithdrawalsEntity> findByPartybNameLikeOrderByCreateTimeDesc(String params, Pageable pageable);
    Page <WithdrawalsEntity> findByPartybIdOrderByCreateTimeDesc(String params, Pageable pageable);
    List <WithdrawalsEntity> findByCreateTimeBetweenOrderByCreateTimeDesc(Long startTime, Long endTime);
    List <WithdrawalsEntity> findByPartybIdOrderByCreateTimeDesc(String id);

}

